package com.jmp.api.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Builder;
import lombok.Data;

import java.util.List;

/**
 * @author cjr
 */
@Data
@Builder
public class GoodsListTypeResponse {
    @ApiModelProperty(value = "分类", dataType = "GoodsListTypeResponse.Type")
    private List<Type> types;

    @ApiModel("GoodsListTypeResponse.Type")
    @Data
    @Builder
    public static class Type {
        @ApiModelProperty("分类ID")
        private Integer id;
        @ApiModelProperty("分类名称")
        private String name;
        @ApiModelProperty("分类全路径名称")
        private String groupName;
        @ApiModelProperty(value = "子类列表", dataType = "GoodsListTypeResponse.Type")
        private List<Type> children;
    }
}
